package com.cvmars.jianyou.module.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

import com.cvmars.jianyou.R;
import com.cvmars.jianyou.api.api.Api;
import com.cvmars.jianyou.api.api.HttpUtils;
import com.cvmars.jianyou.api.api.SimpleSubscriber;
import com.cvmars.jianyou.api.model.HttpResult;
import com.cvmars.jianyou.module.base.BaseActivity;
import com.cvmars.jianyou.utils.ToastUtils;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import io.rong.imkit.RongIM;
import io.rong.imlib.RongIMClient;

/**
 * A login screen that offers login via email/password.
 */
public class LoginActivity extends BaseActivity {


    @BindView(R.id.txt_login_password)
    TextView txtLoginPassword;
    @BindView(R.id.txt_login_register)
    TextView txtLoginRegister;
    @BindView(R.id.txt_login_btn)
    TextView txtLoginBtn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login2);
        ButterKnife.bind(this);

    }


    @OnClick({R.id.txt_login_password, R.id.txt_login_register,R.id.txt_login_btn})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.txt_login_password:

                startActivity(new Intent(this, LoginPassWordActivity.class));
                break;
            case R.id.txt_login_register:
                startActivity(new Intent(this, RegisterActivity.class));
                break;

                case R.id.txt_login_btn:
                break;
        }
    }


}

